<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */




?>


<div id="login">
    <?php if(!UserLogin::isLoggedIn()) { ?>
    <form method="post">
        <span> Login: </span>
        <input type="text" name="username"/>
        <input type="password" name="password"/>
        <input type="submit" name="login" value="login"/>
    </form>
    <?php } else { ?>
        <form method="post">
            Login: <?php echo Session::getUser(); ?>
            <input type="submit" name="logout" value="logout"/>
        </form>
        
    <?php }  ?>
</div>